#!/usr/bin/env node

const fs = require('fs');

const file = process.argv[2] ?? __filename;

const lines = fs.readFileSync(file,'utf8').split('\n');

//调试
// consolr.log(lines);
// process.exit();

for(let i=0;i<lines.length;i++){
  lines[i] = (i+1) + '\t' + lines[i];
}

console.log(lines.join('\n'));
